/**
 * Created by Administrator on 2017/3/24.
 */
import {Injectable} from '@angular/core';
import { Subject } from 'rxjs/Subject';
import {HttpService} from "../../util/http/http.service";
import {PromptService} from "../../util/prompt/prompt.service";
@Injectable()
export class FileService {

    constructor(private httpService: HttpService, private promptService: PromptService) {

    }




    getFileDownloadPathByFileKey(fileKey: string): Promise<any> {
        let promise: any = this.httpService.post("/api/file/get_fileDownloadPath_byFileKey", {"fileKey":fileKey})
        return promise.then(function (data: any) {
            return Promise.resolve(data);
        })
    }


}